package top.yxqz.number2.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;
import top.yxqz.number2.entity.Dog;
import top.yxqz.number2.service.DogService;

/**
 * @author: 余小小
 * @date: 2023/9/12
 * @description：
 */
@RestController
public class DogController {


    @Autowired
    private DogService dogService;


    /**
     * 获取小狗的信息
     */
    @GetMapping("/dog")
    public Dog getDogObj() {
        return dogService.getDogObj();
    }


}
